package persistent.prestige.platform.security;


import org.apache.shiro.authz.SimpleAuthorizationInfo;

import persistent.prestige.platform.security.model.User;

public interface ISecurityDataProvider {
	
	/**
	 * 根据用户名找到user
	 * @param username
	 * @return
	 */
	User findUserByUserName(String username);
	
	/**
	 * 根据用户 所有权限
	 * @param user
	 * @return
	 */
	void getAuthorizationInfo(User user, SimpleAuthorizationInfo info );
	
	/**
	 * 判断访问的资源是否是系统资源
	 * @param url
	 * @return
	 */
	boolean isSystemResource(String url);
	

}
